package cn.wk.services.impl;

import cn.wk.dao.CourseDao;
import cn.wk.dao.impl.CourseDaoImpl;
import cn.wk.entity.Classes;
import cn.wk.entity.Course;
import cn.wk.services.CourseServices;

import java.util.List;

public class CourseServicesImpl implements CourseServices {
    private CourseDao dao=new CourseDaoImpl();
    @Override
    public List<Course> getAllCourse(Object... obj) {
        return dao.getAllCourse(obj);
    }

    @Override
    public int AddCourse(Object... obj) {
        return dao.AddCourse(obj);
    }

    @Override
    public int MidffCourse(Object... obj) {
        return dao.MidffCourse(obj);
    }

    @Override
    public int DelCourse(Object... obj) {
        return dao.DelCourse(obj);
    }

    @Override
    public int AddAllCourse(String sql) {
        return dao.AddAllCourse(sql);
    }

    @Override
    public Classes findCourseById(int aid) {
        return dao.findCourseById(aid);
    }

    @Override
    public List<Course> getCounameByTno(String tno) {
        return dao.getCounameByTno(tno);
    }

    @Override
    public int CountSize() {
        return dao.CountSize();
    }
}
